/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xs_bank_card.entity;

import com.jeeplus.modules.xs_user.entity.XsUser;
import javax.validation.constraints.NotNull;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 用户银行卡信息Entity
 * @author tzz
 * @version 2021-07-15
 */
@Data
public class XsBankCard extends DataEntity<XsBankCard> {
	
	private static final long serialVersionUID = 1L;
    @NotNull(message="用户id不能为空")
	@ExcelField(title="用户id", fieldType=XsUser.class, value="user.nickname", align=2, sort=1)
	private XsUser user;		// 用户id
	@ExcelField(title="持卡人姓名", align=2, sort=2)
	private String name;		// 持卡人姓名
	@ExcelField(title="银行卡号", align=2, sort=3)
	private String bankCardNumber;		// 银行卡号
	@ExcelField(title="开户银行", align=2, sort=4)
	private String openBank;		// 开户银行
	@ExcelField(title="开户行网点名称", align=2, sort=5)
	private String address;		// 开户行网点名称
	@ExcelField(title="开户行所在省份", align=2, sort=6)
	private String province;		// 开户行所在省份
	@ExcelField(title="开户行所在城市", align=2, sort=7)
	private String city;		// 开户行所在城市
	
	public XsBankCard() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}
	
	public XsBankCard(String id){
		super(id);
	}
}